<%@ page language="java" pageEncoding="UTF-8"%>
<!--分页查询共用的页面-->
<%@ include file="/common/paginateUtil.jsp"%>
<!--日期控件-->
<%@ include file="/common/dateUtil.jsp"%>
  
</head>

<script type="text/javascript" charset="utf-8">			
/*
测试内容：
	1.打开页面后直接点击查询
	2.选择时间，正常时间，结束时间小于开始时间，结束时间等于开始时间
	3.选择车牌号，正常车牌号，乱码，单个单词匹配
	4.选择simNo，正常卡号，乱码，单个或多个数字匹配
	5.点击重置，然后点击查询
	6.导出，正常导出，空数据导出，点击重置后导出点击查询未返回结果时导出

测试结果：正常
*/			

$(document).ready(function() {

	//初始化时间
	var now = Utility.today();
	$("#dispathStartDate").val(now + " 00:00:00");
	$("#dispathEndDate").val(now + " 23:59:59");
	
	//设置查询按钮事件
	$("#btnQuery").click(function () {
		Utility.loadGridWithParams();
	});
});
</script>
<body>
		<div id="toolbar">		
			
			<form id="queryForm" action="<%=ApplicationPath%>/report/paginate.action">
			   <input type="hidden" name="queryId" value="terminalCommand.selectTerminalCommand" />		
			   <input type="hidden" name="fileName" value="调度信息指令" />		  
			   <!--指定要查询调度信息指令-->
			   <input type="hidden" name="dispatch" value="dispatch" />		   
			<table width="100%" class="TableBlock">
				<tr>
					<td>
						<div>
							<span>车牌号码: </span>
							<input type="text" name="plateNo" size="10" id="name" style="width:170px;">
						</div>
					</td>
					<td>
						<div>
							<span>Sim卡号:</span>
							<input type="text" name="simNo" size="10" style="width:170px;">
						</div>
					</td>
					<td>
						<div>
							<span>操作时间:</span>
							<input id="dispathStartDate" type="text" name="startDate" size="10" class="datetimepicker" style="width:140px;">
						至 <input id="dispathEndDate" type="text" name="endDate" size="10" class="datetimepicker" style="width:140px;">
						</div>
					</td>
					<td align="left">
						<a id="btnQuery" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>&nbsp;
						<a id="btnReset" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear'">重置</a>&nbsp;
						<a id="btnExport" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-excel'" onclick="Utility.excelExport('<%=ApplicationPath%>/export.action');">导出</a>
						<!--调用utility.js-->
					</td>
				</tr>
			</table>
		</form>	 
		
  </div>
				<table id="queryGrid" class="easyui-datagrid" title="" style="width:100%;height:480px"
						data-options="pagination:true,pageSize:15,singleSelect:true,rownumbers:true,striped:true,fitColumns: true,
						pageList: [15, 20, 50, 100, 150, 200],fit:true,toolbar:'#toolbar',
						url:'<%=ApplicationPath%>/report/paginate.action',method:'get'">
					<thead>
						<tr>
							<th data-options="field:'plateNo'"  width="8%">车牌号</th>
							<!-- <th data-options="field:'plateColor'"  width="5%">车牌颜色</th> -->
							<th data-options="field:'simNo'"  width="7%">卡号</th>
							<th data-options="field:'remark'"   width="12%">信息显示类型</th>
							<th data-options="field:'cmdData'"  width="24%">信息内容</th>
							<th data-options="field:'status'"  width="8%">执行结果</th>
							<th data-options="field:'createDate'"  width="13%">下发时间</th>
							<th data-options="field:'updateDate'"  width="13%">执行时间</th>
							<th data-options="field:'owner'"  width="6%">操作人</th>
						</tr>
					</thead>
					<tbody>
						
					</tbody>					
				</table>

</body>



